﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BrowseTrees.aspx.cs" Inherits="ForestryEnterprise.BrowseTrees" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <h2>Trees info</h2>
        <hr />
        <div id="updateTree" runat="server" visible="false">
            <label>Tree Name:</label><asp:TextBox ID="treeName" runat="server" />
            <label>Tree Age:</label><asp:TextBox ID="treeAge" runat="server" />
            <label>Tree Height:</label><asp:TextBox ID="treeHeight" runat="server" />
            <label>Tree Width:</label><asp:TextBox ID="treeWidth" runat="server" />
            <br />
            <label>Seed Desc:</label><asp:TextBox ID="seedDesc" runat="server" />
            <label>Seed Color:</label><asp:TextBox ID="seedColor" runat="server" />
            <label>Seed Weight:</label><asp:TextBox ID="seedWeight" runat="server" />
            <br />
            <label>Stem Desc:</label><asp:TextBox ID="stemDesc" runat="server" />
            <label>Stem Color:</label><asp:TextBox ID="stemColor" runat="server" />
            <label>Stem Width:</label><asp:TextBox ID="stemWidth" runat="server" />
            <label>Stem Height:</label><asp:TextBox ID="stemHeight" runat="server" />
            <br />
            <label>Skin Desc:</label><asp:TextBox ID="skinDesc" runat="server" />
            <label>Skin Color:</label><asp:TextBox ID="skinColor" runat="server" />
            <label>Skin Thickness:</label><asp:TextBox ID="skinThickness" runat="server" />
            <br />
            <label>Leaf Desc:</label><asp:TextBox ID="leafDesc" runat="server" />
            <label>Leaf Color:</label><asp:TextBox ID="leafColor" runat="server" />
            <label>Leaf Thickness:</label><asp:TextBox ID="leafThickness" runat="server" />
            <label>Leaf Proportion:</label><asp:TextBox ID="leafProportion" runat="server" />
            <br />
            <label>Fruit Desc:</label><asp:TextBox ID="fruitDesc" runat="server" />
            <label>Fruit Color:</label><asp:TextBox ID="fruitColor" runat="server" />
            <label>Fruit Eatable:</label><asp:CheckBox ID="fruitEatable" runat="server" />
            <br />
            <asp:Button ID="update" Text="Update" runat="server" onclick="update_Click" />
            <asp:Button ID="cancel" Text="Cancel" runat="server" onclick="cancel_Click" />
        </div>
        <hr />
        <asp:GridView ID="treeInfo" AutoGenerateColumns="False" 
            DataKeyNames="tree_name" runat="server" DataSourceID="treeInfoData" 
            EnableModelValidation="True" 
            onselectedindexchanged="treeInfo_SelectedIndexChanged">
            <Columns>
                <asp:CommandField ShowSelectButton="true" />
                <asp:BoundField DataField="tree_name" ReadOnly="true" InsertVisible="false" HeaderText="Name" />
                <asp:BoundField DataField="tree_age" ReadOnly="true" InsertVisible="false" HeaderText="Age" />
                <asp:BoundField DataField="tree_height" ReadOnly="true" InsertVisible="false" HeaderText="Height" />
                <asp:BoundField DataField="tree_width" ReadOnly="true" InsertVisible="false" HeaderText="Width" />
                <asp:BoundField DataField="se_desc" ReadOnly="true" InsertVisible="false" HeaderText="Seed desc" />
                <asp:BoundField DataField="se_color" ReadOnly="true" InsertVisible="false" HeaderText="Seed color" />
                <asp:BoundField DataField="se_weight" ReadOnly="true" InsertVisible="false" HeaderText="Seed weight" />
                <asp:BoundField DataField="st_desc" ReadOnly="true" InsertVisible="false" HeaderText="Stem desc" />
                <asp:BoundField DataField="st_color" ReadOnly="true" InsertVisible="false" HeaderText="Stem color" />
                <asp:BoundField DataField="st_width" ReadOnly="true" InsertVisible="false" HeaderText="Stem width" />
                <asp:BoundField DataField="st_height" ReadOnly="true" InsertVisible="false" HeaderText="Stem height" />
                <asp:BoundField DataField="sk_desc" ReadOnly="true" InsertVisible="false" HeaderText="Skin desc" />
                <asp:BoundField DataField="sk_color" ReadOnly="true" InsertVisible="false" HeaderText="Skin color" />
                <asp:BoundField DataField="sk_thickness" ReadOnly="true" InsertVisible="false" HeaderText="Skin thickness" />
                <asp:BoundField DataField="le_desc" ReadOnly="true" InsertVisible="false" HeaderText="Leaf desc" />
                <asp:BoundField DataField="le_color" ReadOnly="true" InsertVisible="false" HeaderText="Leaf color" />
                <asp:BoundField DataField="le_thickness" ReadOnly="true" InsertVisible="false" HeaderText="Leaf thickness" />
                <asp:BoundField DataField="le_proportions" ReadOnly="true" InsertVisible="false" HeaderText="Leaf proportions" />
                <asp:BoundField DataField="f_desc" ReadOnly="true" InsertVisible="false" HeaderText="Fruit desc" />
                <asp:BoundField DataField="f_color" ReadOnly="true" InsertVisible="false" HeaderText="Fruit color" />
                <asp:BoundField DataField="f_eatable" ReadOnly="true" InsertVisible="false" HeaderText="Fruit eatable" />
            </Columns>
        </asp:GridView>

        <asp:AccessDataSource ID="treeInfoData" DataFile="~/App_Data/ForestryEnterprise.mdb" runat="server" />
    </form>
</body>
</html>
